package com.lx.service;

import com.lx.bean.Label;
import com.lx.bean.LabelExample;
import com.lx.dao.LabelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LabelService {

    @Autowired
    LabelMapper mapper;

    public List<Label> findLabelByFbId(Integer id) {
        LabelExample example = new LabelExample();
        LabelExample.Criteria criteria = example.createCriteria();
        criteria.andFbIdEqualTo(id);

        return mapper.selectByExample(example);
    }
}
